package com.springcloud1.configclient.controller;

import com.springcloud1.configclient.config.GitConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/git")
@RefreshScope
public class GitController {

    @Autowired
    private GitConfig gitConfig;

    @GetMapping()
    public Object get(){
        return gitConfig;
    }
}
